package com.ruoyi.system.service.impl.shopping;

import java.util.List;

import com.ruoyi.system.domain.shopping.OrderItems;
import com.ruoyi.system.mapper.shopping.OrderItemsMapper;
import com.ruoyi.system.service.shopping.IOrderItemsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * orderService业务层处理
 * 
 * @author zjh
 * @date 2025-11-21
 */
@Service
public class OrderItemsServiceImpl implements IOrderItemsService
{
    @Autowired
    private OrderItemsMapper orderItemsMapper;

    /**
     * 查询order
     * 
     * @param orderItemId order主键
     * @return order
     */
    @Override
    public OrderItems selectOrderItemsByOrderItemId(Long orderItemId)
    {
        return orderItemsMapper.selectOrderItemsByOrderItemId(orderItemId);
    }

    /**
     * 查询order列表
     * 
     * @param orderItems order
     * @return order
     */
    @Override
    public List<OrderItems> selectOrderItemsList(OrderItems orderItems)
    {
        return orderItemsMapper.selectOrderItemsList(orderItems);
    }

    /**
     * 新增order
     * 
     * @param orderItems order
     * @return 结果
     */
    @Override
    public int insertOrderItems(OrderItems orderItems)
    {
        return orderItemsMapper.insertOrderItems(orderItems);
    }

    /**
     * 修改order
     * 
     * @param orderItems order
     * @return 结果
     */
    @Override
    public int updateOrderItems(OrderItems orderItems)
    {
        return orderItemsMapper.updateOrderItems(orderItems);
    }

    /**
     * 批量删除order
     * 
     * @param orderItemIds 需要删除的order主键
     * @return 结果
     */
    @Override
    public int deleteOrderItemsByOrderItemIds(Long[] orderItemIds)
    {
        return orderItemsMapper.deleteOrderItemsByOrderItemIds(orderItemIds);
    }

    /**
     * 删除order信息
     * 
     * @param orderItemId order主键
     * @return 结果
     */
    @Override
    public int deleteOrderItemsByOrderItemId(Long orderItemId)
    {
        return orderItemsMapper.deleteOrderItemsByOrderItemId(orderItemId);
    }
}
